package com.suse.service.community.service;


import com.suse.service.community.entity.LoginTicket;
import com.suse.service.community.entity.User;
import java.util.Map;

/**
 * <p>
 * 用户业务接口
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-29 15:37
 */
public interface UserService {

    User getUserById(int id);

    Map<String,Object> register(User user);

    int activation(int userId, String code);

    Map<String,Object> login(User user,int expireSeconds);

    void logout(String ticket);

    LoginTicket getLoginTicketByTicket(String ticket);

    boolean updateHeader(int id,String headerUrl);

    User getByName(String name);
    
}
